import request from "@/utils/request";

// 获取排行榜列表
export function getRankList(type) {
    return request({
        url: `/sysOperation/getPageViewRankingData?unit=${type}`,
        method: "get",
    });
}

// 获取系统访问量
export function getSysteminterview(type) {
    return request({
        url: `/sysOperation/getVisitsStatisticsData?unit=${type}`,
        method: "get",
    });
}

// 获取浏览排行
export function getViewRank(query) {
    return request({
        url: `/sysOperation/getPageViewRankingPage`,
        method: "get",
        params:query
    });
}

// 信息成果数据
export function getXxcgList(query) {
    return request({
        // url: `/sysOperation/getPageViewRankingData?unit=month`,
        url: `/infAchievement/getLatestData`,
        method: "get",
        params:query
    });
}

// 获取典型案例列表
export function getCaseList(query) {
    return request({
        url: "/serviceCase/claCasPage",
        method: "get",
        params:query
    });
}

// 获取最新资料列表-更多
export function getProfileListMore(query) {
    return request({
        url: "/infDelivery/claCasPage",
        method: "get",
        params:query
    });
}

// 获取最新资料列表
export function getProfileList(query) {
    return request({
        url: "/infDelivery/getLatestInformation",
        method: "get",
        params:query
    });
}

// 获取首页轮播列表
export function getRotationChart(query) {
    return request({
        url: `/serviceCase/getRotationChartData`,
        method: 'get',
        params:query
    })
} 